<template name="closedInvitations">
  {{#if hasInvites}}
    <table class="table">
      <thead>
        <tr>
          <th width="5%"></th>
          <th width="40%">Email Address</th>
          <th width="20%" class="text-center">Date Invited</th>
          <th width="15%" class="text-center">Invite Token</th>
          <th width="20%" class="text-center">Account Created?</th>
        </tr>
      </thead>
      <tbody>
        {{#each invites}}
        <tr>
          <td>#{{inviteNumber}}</td>
          <td class="vertical-align">{{email}}</td>
          <td class="text-center vertical-align">{{epochToString dateInvited}}</td>
          <td class="text-center vertical-align">{{#if token}}{{token}}{{else}}<label class="label label-success">Already Used</label>{{/if}}</td>
          <td class="text-center vertical-align">
          {{#if accountCreated}}
            Yes
          {{else}}
            No
          {{/if}}
          </td>
        </tr>
        {{/each}}
      </tbody>
    </table>
    {{else}}
      <div class="well square-top">
        You haven't sent any invites yet.
      </div>
    {{/if}}
</template>
